package mspbots.hubspot.common;

/**
 * mspbots.data.autotask.utils.RedisKeys
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/15
 */
public class RedisKeys {
    /**
     * Redis default base key
     */
    private final static String REDIS_KEY_PREFIX = "data:hub-spot:sync:";

    /**
     * ACCESS TOKEN key
     */
    public final static String ACCESS_TOKEN_REDIS_KEY = REDIS_KEY_PREFIX + "oauth:access-token:";

    /**
     * ACCESS TOKEN key
     */
    public final static String AUTHORIZE_REDIS_KEY = REDIS_KEY_PREFIX + "oauth:authorize:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TASK_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:lock";

    /**
     * Scheduled anchor lock key
     */
    public final static String RUNNING_TASK_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:running:lock";
    /**
     * Scheduled anchor lock key
     */
    public final static String ON_OFF_TENANT_TASK_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:on-off";

    /**
     * sync tickets anchor time begin
     */
    public final static String TICKETS_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:tickets:";
    /**
     * sync companies anchor time begin
     */
    public final static String COMPANIES_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:companies:";

    /**
     * sync contacts anchor time begin
     */
    public final static String CONTACTS_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:contacts:";

}
